return {
  {
    "yetone/avante.nvim",
    event = "VeryLazy",
    version = false, -- 永远不要将此值设置为 "*"！永远不要！
    enabled = false,
    opts = {
      -- 在此处添加任何选项
      -- 例如
      provider = "ollama",
      fallback = { "deepseek" },
      cursor_applying_provider = "ollama_coder",
      behaviour = {
        enable_cursor_planning_mode = true, -- enable cursor planning mode!
      },
      vendors = {
        ollama_coder = { -- define groq provider
          __inherited_from = "openai",
          api_key_name = "",
          endpoint = "http://127.0.0.1:11434",
          model = "codellama:7b",
          max_completion_tokens = 32768, -- remember to increase this value, otherwise it will stop generating halfway
        },
      },
      ollama = {
        endpoint = "http://127.0.0.1:11434",
        model = "deepseek-r1:8b", -- 您想要的模型（或使用 gpt-4o 等）
        timeout = 30000, -- 超时时间（毫秒），增加此值以适应推理模型
        temperature = 0,
        max_tokens = 8192, -- 增加此值以包括推理模型的推理令牌
        response_lang = "zh-CN",
        --reasoning_effort = "medium", -- low|medium|high，仅用于推理模型
      },
      providers = {
        ollama = {
          endpoint = "http://127.0.0.1:11434",
          model = "deepseek-r1:8b", -- 您想要的模型（或使用 gpt-4o 等）
          timeout = 30000, -- 超时时间（毫秒），增加此值以适应推理模型
          temperature = 0,
          max_tokens = 8192, -- 增加此值以包括推理模型的推理令牌
          response_lang = "zh-CN",
          --reasoning_effort = "medium", -- low|medium|high，仅用于推理模型
        },
        codellama = {
          endpoint = "http://127.0.0.1:11434",
          model = "codellama:7b", -- 您想要的模型（或使用 gpt-4o 等）
          timeout = 30000, -- 超时时间（毫秒），增加此值以适应推理模型
          temperature = 0,
          max_tokens = 8192, -- 增加此值以包括推理模型的推理令牌
          response_lang = "zh-CN",
        },
        deepseek = {
          endpoint = "https://api.deepseek.com/v1",
          model = "deepseek-coder-33b",
          api_key = os.getenv("DEEPSEEK_API_KEY"),
        },
      },
      locale = "zh_CN",
    },
    keys = {
      { "<Leader>apo", "<Cmd>lua require('avante.config').setup({provider='ollama'})<CR>", desc = "切换 Ollama" },
      { "<Leader>apd", "<Cmd>lua require('avante.config').setup({provider='deepseek'})<CR>", desc = "切换 DeepSeek" },
      {
        "<Leader>apc",
        "<Cmd>lua require('avante.config').setup({provider='codellama'})<CR>",
        desc = "切换 codellama",
      },
    },
    -- 如果您想从源代码构建，请执行 `make BUILD_FROM_SOURCE=true`
    -- 如果您想从源代码构建，请执行 `make BUILD_FROM_SOURCE=true`
    build = "make",
    -- build = "powershell -ExecutionPolicy Bypass -File Build.ps1 -BuildFromSource false" -- 对于 Windows
    dependencies = {
      "nvim-treesitter/nvim-treesitter",
      "stevearc/dressing.nvim",
      "nvim-lua/plenary.nvim",
      "MunifTanjim/nui.nvim",
      --- 以下依赖项是可选的，
      "echasnovski/mini.pick", -- 用于文件选择器提供者 mini.pick
      "nvim-telescope/telescope.nvim", -- 用于文件选择器提供者 telescope
      -- "hrsh7th/nvim-cmp", -- avante 命令和提及的自动完成
      "ibhagwan/fzf-lua", -- 用于文件选择器提供者 fzf
      "nvim-tree/nvim-web-devicons", -- 或 echasnovski/mini.icons
      -- "zbirenbaum/copilot.lua", -- 用于 providers='copilot'
      {
        -- 支持图像粘贴
        "HakonHarnes/img-clip.nvim",
        event = "VeryLazy",
        opts = {
          -- 推荐设置
          default = {
            embed_image_as_base64 = false,
            prompt_for_file_name = false,
            drag_and_drop = {
              insert_mode = true,
            },
            -- Windows 用户必需
            use_absolute_path = true,
          },
        },
      },
      {
        -- 如果您有 lazy=true，请确保正确设置
        "MeanderingProgrammer/render-markdown.nvim",
        opts = {
          file_types = { "markdown", "Avante" },
        },
        ft = { "markdown", "Avante" },
      },
    },
  },
  {
    "saghen/blink.cmp",
    dependencies = {
      "Kaiser-Yang/blink-cmp-avante",
    },
    opts = {
      sources = {
        -- Add 'avante' to the list
        default = { "avante", "lsp", "path", "buffer" },
        providers = {
          avante = {
            module = "blink-cmp-avante",
            name = "Avante",
            opts = {
              -- options for blink-cmp-avante
            },
          },
        },
      },
    },
  },
}
